package com.jyniubi.sms.feign;

import com.jyniubi.base.result.R;
import com.jyniubi.sms.feign.fallback.ServiceCoreFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-core",fallback = ServiceCoreFallback.class)
public interface ServiceCoreClient {
    @GetMapping("/api/core/userInfo/checkMobile/{phone}")
    public R checkMobile(@PathVariable("phone") String phone);
}
